package com.ecnu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class },
        scanBasePackages = "com.ecnu")//新增扫描所培com.ecnu的包
@EnableAsync
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");

        ConfigurableApplicationContext context = SpringApplication.run(RuoYiApplication.class, args);

        String port = context.getEnvironment().getProperty("server.port");
        System.out.println("\n\n(*^▽^*)启动成功!!!(〃'▽'〃)，地址为：http://localhost:"+port+"/swagger-ui/index.html");
    }
}
